package com.social.service.adminUser.impl;

import com.social.entity.AdminUser;
import com.social.mapper.AdminUserMapper;
import com.social.service.adminUser.AdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service(value = "adminUserService")
public class AdminUserServiceImpl implements AdminUserService {
    @Autowired
    private AdminUserMapper adminUserMapper;
    @Override
    public int deleteByPrimaryKey(String id) {
        return adminUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(AdminUser record) {
        return adminUserMapper.insert(record);
    }

    @Override
    public AdminUser selectByPrimaryKey(Map<String,Object> params) {
        return adminUserMapper.selectByPrimaryKey(params);
    }

    @Override
    public AdminUser login(Map<String, Object> params) {
        return adminUserMapper.login(params);
    }

    @Override
    public int updateByPrimaryKeySelective(AdminUser record) {
        return adminUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<AdminUser> selectByAll() {
        return  adminUserMapper.selectByAll();
    }
}
